/*
 * v1.1 by tonydon site:txdnet.cn
 * netbeansIDE 7.1
 */
package cn.txdnet.txweb.model;

/**
 * @see 用于输出 text,json,html,js
 * @author txdnet
 */
public class TxtModel extends ModelView{
    
    // 输出类型 
    // text 0{text/plain} 
    // html 1{text/html} 
    // json 2{application/json} 
    // js 3{application/javascript}
    private ViewType type;
    // 内容
    private Object content;

    public TxtModel(ViewType type, Object content){
        this.type=type;
        this.content=content;
    }
    /**
     * @return the type
     */
    @Override
    public ViewType getType() {
        return type;
    }

    /**
     * @param type the type to set
     */
    @Override
    public void setType(ViewType type) {
        this.setType(type);
    }

    /**
     * @return the content
     */
    public Object getContent() {
        return content;
    }

    /**
     * @param content the content to set
     */
    public void setContent(Object content) {
        this.content = content;
    }

    
}
